<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<jsp:include page="../../../inc/xheditor.jsp"></jsp:include>
<script type="text/javascript">
	$(document).ready(function() {
		$.get("getSelect.do",{type:'0',index:'${o.married}'}, function(data){$("select#married").append(data);});
		$.get("getSelect.do",{type:'2',index:'${o.sex}'}, function(data){$("select#sex").append(data);});
		$.get("getSelect.do",{type:'1',code:null,index:'${o.region_treeCode}'}, function(data){$("select#region_treeCode").append(data);});
		$.get("getSelect.do",{type:'3',index:'${o.degree}'}, function(data){$("select#degree").append(data);});
		$.get("getSelect.do",{type:'4',index:'${o.nation}'}, function(data){$("select#nation").append(data);});
		$.get("getSelect.do",{type:'5',index:'${o.workType}'}, function(data){$("select#workType").append(data);});
		$.get("getSelect.do",{type:'7',index:'${o.major}',code:null}, function(data){$("select#major").append(data);});
		$.get("getSelect.do",{type:'zw',code:null,index:'${o.position}'}, function(data){$("select#position").append(data);});
		$("#save").button().click(function() {
			$('#f').ajaxSubmit(function(data){
                alert(data);
            });
            return false;
		});
	});
</script>
<div class="content">
	<form action="./updateUser.do" id="f" method="post">
<fieldset>
	<legend>基本信息</legend>
		<div><label>用户名：：</label><input type="text" name="loginName" value="${o.loginName }"></div>
		<div><label>真实姓名：</label><input type="text" name="realName" value="${o.realName }"></div>
		<div><label>年龄：</label><input type="text" name="age" class="short" value="${o.age }"></div>
		<div><label>身高：</label><input type="text" name="height" class="short" value="${o.height }"></div>
		<div><label>性别：</label><select id="sex" name="sex"><option value="">请选择</option></select></div>
		<div><label>民族：</label><select id="nation" name="nation"><option value="">请选择</option></select></div>
		<div><label>学历：</label><select id="degree" name="degree"><option value="">请选择</option></select></div>
		<div><label>是否结婚：</label><select id="married" name="married"><option value="">请选择</option></select></div>
		<div><label>照片：</label><input type="text" name="pic" class="long" value="${o.pic }"><input type="button" value="上传"/></div>
		<div><label>地区：</label><select id="region_treeCode" name="region_treeCode"><option value="">请选择</option></select></div>
</fieldset>
<fieldset>
	<legend>教育背景</legend>
		<div><label>学校：</label><input type="text" name="school" value="${o.school }"></div>
		<div><label>专业：</label><select id="major" name="major"><option value="">请选择</option></select></div>
</fieldset>
<fieldset>
	<legend>工作情况</legend>
		<div><label>工作年限：</label><input type="text" name="workYear" value="${o.workYear }" class="short" ></div>
		<div><label>职位：</label><select id="position" name="position"><option value="">请选择</option></select></div>
</fieldset>
<fieldset>
	<legend>求职意向</legend>
		<div><label>期望工资：</label><input type="text" name="wages" class="short" value="${o.wages }">元</div>
		<div><label>兼职/全职：</label><select id="workType" name="workType"><option value="">请选择</option></select></div>
</fieldset>
<fieldset>
	<legend>联系方式</legend>
		<div><label>电话：</label><input type="text" name="tel" value="${o.tel }"></div>
		<div><label>手机：</label><input type="text" name="phone" value="${o.phone }"></div>
		<div><label>QQ：</label><input type="text" name="qq" value="${o.qq }"></div>
		<div><label>E-mail：</label><input type="text" name="email" value="${o.email }"></div>
		<div><label>地址：</label><input type="text" name="address" class="long" value="${o.address }"></div>
		<div><label>个人说明：</label><textarea name="summary" class="xheditor-mini">${o.summary }</textarea></div>
</fieldset>
</form>
<button id="save">保存</button>
</div>
